/**
 * Writed by yura and mak
 */

package wz.legend.db;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;

public class HibernateUtils {
    
    static final SessionFactory factory;
    
    static {
        factory = new AnnotationConfiguration().configure()
                .buildSessionFactory();
    }
    
    public static SessionFactory getSessionFactory() {
        return factory;
    }
    
    
}
